package com.glory.brepda.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * FileName: AuthorityListEntity
 * Author: XJH
 * Date: 2020/5/27 10:10
 * Description: 权限列表
 * History:
 */
public class AuthorityListEntity implements Serializable {

  private List<Authority> AUTHORITYLIST;

  public List<Authority> getAUTHORITYLIST() {
    if (AUTHORITYLIST == null) {
      return new ArrayList<>();
    }
    return AUTHORITYLIST;
  }

  public void setAUTHORITYLIST(List<Authority> AUTHORITYLIST) {
    this.AUTHORITYLIST = AUTHORITYLIST;
  }

  public static class Authority implements Serializable{
    private String OBJECTRRN;//当前权限主键
    private String NAME;//名字
    private String AUTHORITYTYPE;//权限类型 M：模块；F：功能；B：按钮；
    private String PARENTRRN;//父节点主键
    private String SEQNO;
    private String LABEL;
    private String LABELZH;

    public String getOBJECTRRN() {
      return OBJECTRRN == null ? "" : OBJECTRRN;
    }

    public void setOBJECTRRN(String OBJECTRRN) {
      this.OBJECTRRN = OBJECTRRN;
    }

    public String getNAME() {
      return NAME == null ? "" : NAME;
    }

    public void setNAME(String NAME) {
      this.NAME = NAME;
    }

    public String getAUTHORITYTYPE() {
      return AUTHORITYTYPE == null ? "" : AUTHORITYTYPE;
    }

    public void setAUTHORITYTYPE(String AUTHORITYTYPE) {
      this.AUTHORITYTYPE = AUTHORITYTYPE;
    }

    public String getPARENTRRN() {
      return PARENTRRN == null ? "" : PARENTRRN;
    }

    public void setPARENTRRN(String PARENTRRN) {
      this.PARENTRRN = PARENTRRN;
    }

    public String getSEQNO() {
      return SEQNO == null ? "" : SEQNO;
    }

    public void setSEQNO(String SEQNO) {
      this.SEQNO = SEQNO;
    }

    public String getLABEL() {
      return LABEL == null ? "" : LABEL;
    }

    public void setLABEL(String LABEL) {
      this.LABEL = LABEL;
    }

    public String getLABELZH() {
      return LABELZH == null ? "" : LABELZH;
    }

    public void setLABELZH(String LABELZH) {
      this.LABELZH = LABELZH;
    }

    @Override
    public String toString() {
      return "Authority{" +
              "OBJECTRRN='" + OBJECTRRN + '\'' +
              ", NAME='" + NAME + '\'' +
              ", AUTHORITYTYPE='" + AUTHORITYTYPE + '\'' +
              ", PARENTRRN='" + PARENTRRN + '\'' +
              ", SEQNO='" + SEQNO + '\'' +
              ", LABEL='" + LABEL + '\'' +
              ", LABELZH='" + LABELZH + '\'' +
              '}';
    }
  }
}
